package com.example.jimanguang.Entity;

import com.fasterxml.jackson.annotation.JsonBackReference;
import lombok.Getter;
import lombok.Setter;

import javax.persistence.Entity;
import javax.persistence.ManyToOne;
import javax.persistence.Table;
import java.util.ArrayList;
import java.util.List;

@Entity
@Table(name = "chapter")
@Getter
@Setter
public class Chapters extends BaseEntity{

    private String chapterName;//章节名称
    private Integer sort;//漫画章节序号
    private String folderPath;//漫画图片路径
    @ManyToOne
    private Comics comics;

    @JsonBackReference
    public Comics getComics(){return comics;}
}
